<template>
    <div>
        <p>用户名：{{userInfo.user}}</p>
        <p>组：{{userInfo.groups}}</p>
        <p>余额：{{userInfo.balance}}</p>
    </div>
</template>
<script>
    export default {
        name: 'AdminMy',
        data() {
            return {
                userInfo: {}
            }
        },
        methods: {
            getUserInfo() {
                let _this = this;
                _this.$http.post("/jfxy/", {
                    id: "getUserInfo",
                }).then(function (response) {
                    _this.userInfo = response.data.data;
                });
            }
        },
        mounted() {
            this.getUserInfo()
        }
    }
</script>